package com.dz.syndata;

import com.dz.syndata.bean.device.DeviceBean;
import com.dz.syndata.service.IDeviceInfoService;
import com.dz.syndata.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public class CommandLineRunner implements org.springframework.boot.CommandLineRunner {
    @Autowired
    IDeviceInfoService mDeviceInfoService;

    @Override
    public void run(String... args) throws Exception {
        //todo
//      mDeviceInfoService.insertData();
      mDeviceInfoService.selectRainfall();

//      mDeviceInfoService.insertData();
    }

}
